import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lishuo
 * Date: 2024-04-07
 * Time: 22:39
 */
class Father {
    public int thisDesc(Integer o1,Integer o2) {
        return  o2 - o1;
    }
}
public class ThisAndSuperDemo extends Father {

    private void sortDesc(Integer[] nums) {
        Arrays.sort(nums,super::thisDesc);
    }

    public static void main(String[] args) {
        Integer[] nums = {1,2,3,4,5};

        new ThisAndSuperDemo().sortDesc(nums);
        System.out.println(Arrays.toString(nums));
    }
}
